MAXIMUM
MAXIMUM

Syntax: MAXIMUM [ ( array ) ]
    or: MAXIMUM ( { value } )
   and: MAXIMUM% [ ( array ) ]
    or: MAXIMUM% ( { value } )
Location: Minmax (DIY Toolkit - Vol Z)

The effect of this function depends on the parameter supplied.

If no parameter is supplied, then the greatest possible floating point number supported by the QL is returned.

If a single parameter is supplied which is a single dimensional floating point array, then MAXIMUM will return the value of the largest number stored within that array.  If you want to compare the values of an integer array, then use MAXIMUM%.

If, however, you use the second variant to pass a list of values (either numbers or variables), then the highest value out of those parameters will be returned

MAXIMUM% is the same, except for integer values.

Example:
PRINT MAXIMUM%
Returns 32767

DIM x(3):x(0)=10:x(1)=200:x(2)=2.5:x(3)=50.4
PRINT MAXIMUM (x)  
Returns 200

PRINT MAXIMUM% (100, ax ,21*10+ac)
Returns the highest value.

CROSS-REFERENCE:
MATMAX and MAX are similar.
Refer also to MINIMUM.
